package com.pro.common.api.exception;

import com.pro.framework.api.model.IBreakException;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;


@Schema(description = "终止任务异常", example = "一般用于大批次可能需要终止也需要忽略错误进行的任务")
@Getter
public class BusinessNeedRetryException extends BusinessException implements IBreakException {
    private final Integer code = 10050;

    public BusinessNeedRetryException(String msg) {
        super(msg);
    }

    public BusinessNeedRetryException(String msg, Object... params) {
        super(msg, params);
    }

    public BusinessNeedRetryException(Integer code, String msg, Object... params) {
        super(code, msg, params);
    }
}
